<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>EasyXPlus: EasyXPlus::Geometry Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">EasyXPlus
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">EasyXPlus is a simple graphic library for C++ BEGINNERS under Windows.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>EasyXPlus</b></li><li class="navelem"><a class="el" href="class_easy_x_plus_1_1_geometry.html">Geometry</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="class_easy_x_plus_1_1_geometry-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">EasyXPlus::Geometry Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A class providing geometry operations.  
 <a href="class_easy_x_plus_1_1_geometry.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="easy_geometry_8h_source.html">easyGeometry.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:ac84eb7a9333c92cbc3a812f84eaea6b9"><td class="memItemLeft" align="right" valign="top"><a id="ac84eb7a9333c92cbc3a812f84eaea6b9"></a>
static <a class="el" href="class_easy_x_plus_1_1_rgb.html">Rgb</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_easy_x_plus_1_1_geometry.html#ac84eb7a9333c92cbc3a812f84eaea6b9">getPointColor</a> (<a class="el" href="class_easy_x_plus_1_1_point.html">Point</a> point)</td></tr>
<tr class="memdesc:ac84eb7a9333c92cbc3a812f84eaea6b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the <a class="el" href="class_easy_x_plus_1_1_rgb.html" title="Colors represented in RGB color model. ">Rgb</a> color in the given point. <br /></td></tr>
<tr class="separator:ac84eb7a9333c92cbc3a812f84eaea6b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
<tr class="memitem:a13d536546b9af9aa26c265375b9d949d"><td class="memItemLeft" align="right" valign="top"><a id="a13d536546b9af9aa26c265375b9d949d"></a>
static <a class="el" href="class_easy_x_plus_1_1_rgb.html">Rgb</a>&#160;</td><td class="memItemRight" valign="bottom"><b>getCurrentDotColor</b> ()</td></tr>
<tr class="separator:a13d536546b9af9aa26c265375b9d949d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd8ca3ed54723302a7ff93d3014fa074"><td class="memItemLeft" align="right" valign="top"><a id="afd8ca3ed54723302a7ff93d3014fa074"></a>
static <a class="el" href="class_easy_x_plus_1_1_rgb.html">Rgb</a>&#160;</td><td class="memItemRight" valign="bottom"><b>getCurrentLineColor</b> ()</td></tr>
<tr class="separator:afd8ca3ed54723302a7ff93d3014fa074"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad809b138aba3ad5df5c67e190cb93b1"><td class="memItemLeft" align="right" valign="top"><a id="aad809b138aba3ad5df5c67e190cb93b1"></a>
static <a class="el" href="class_easy_x_plus_1_1_rgb.html">Rgb</a>&#160;</td><td class="memItemRight" valign="bottom"><b>getCurrentFillColor</b> ()</td></tr>
<tr class="separator:aad809b138aba3ad5df5c67e190cb93b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab1b34f0ee696cd5bd5618ab14e68103"><td class="memItemLeft" align="right" valign="top"><a id="aab1b34f0ee696cd5bd5618ab14e68103"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><b>setDotColor</b> (const <a class="el" href="class_easy_x_plus_1_1_colorable.html">Colorable</a> &amp;color)</td></tr>
<tr class="separator:aab1b34f0ee696cd5bd5618ab14e68103"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0dbf60566dd1264411cae494fd113233"><td class="memItemLeft" align="right" valign="top"><a id="a0dbf60566dd1264411cae494fd113233"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><b>setLineColor</b> (const <a class="el" href="class_easy_x_plus_1_1_colorable.html">Colorable</a> &amp;color)</td></tr>
<tr class="separator:a0dbf60566dd1264411cae494fd113233"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adfe751ddaba78efeb2cf959d054dfcf3"><td class="memItemLeft" align="right" valign="top"><a id="adfe751ddaba78efeb2cf959d054dfcf3"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><b>setFillColor</b> (const <a class="el" href="class_easy_x_plus_1_1_colorable.html">Colorable</a> &amp;color)</td></tr>
<tr class="separator:adfe751ddaba78efeb2cf959d054dfcf3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Dot Operations. Dot operations draw themselves using the dot color set.</div></td></tr>
<tr class="memitem:a2acc94bf7281966d9ff103ba4605e06e"><td class="memItemLeft" align="right" valign="top"><a id="a2acc94bf7281966d9ff103ba4605e06e"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_easy_x_plus_1_1_geometry.html#a2acc94bf7281966d9ff103ba4605e06e">drawDot</a> (<a class="el" href="class_easy_x_plus_1_1_point.html">Point</a> point)</td></tr>
<tr class="memdesc:a2acc94bf7281966d9ff103ba4605e06e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw a dot at the given point with the dot color set. <br /></td></tr>
<tr class="separator:a2acc94bf7281966d9ff103ba4605e06e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Line Operations. Line operations draw themselves using the line color set.</div></td></tr>
<tr class="memitem:a6c21073d4977aa67bbb6381457669173"><td class="memItemLeft" align="right" valign="top"><a id="a6c21073d4977aa67bbb6381457669173"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_easy_x_plus_1_1_geometry.html#a6c21073d4977aa67bbb6381457669173">drawLine</a> (<a class="el" href="class_easy_x_plus_1_1_point.html">Point</a> from, <a class="el" href="class_easy_x_plus_1_1_point.html">Point</a> to)</td></tr>
<tr class="memdesc:a6c21073d4977aa67bbb6381457669173"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw a line which starts from the "from" point and ends at the "to" point. <br /></td></tr>
<tr class="separator:a6c21073d4977aa67bbb6381457669173"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab8571019ce79381a9d88f08350c53c66"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_easy_x_plus_1_1_geometry.html#ab8571019ce79381a9d88f08350c53c66">drawArc</a> (<a class="el" href="class_easy_x_plus_1_1_rect_region.html">RectRegion</a> bound, <a class="el" href="class_easy_x_plus_1_1_point.html">Point</a> start, <a class="el" href="class_easy_x_plus_1_1_point.html">Point</a> end)</td></tr>
<tr class="memdesc:ab8571019ce79381a9d88f08350c53c66"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw an arc which is bounded in the "bound" region, starts from the "start" point and ends at the "end" point in clockwise order.  <a href="#ab8571019ce79381a9d88f08350c53c66">More...</a><br /></td></tr>
<tr class="separator:ab8571019ce79381a9d88f08350c53c66"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a83446e6edb40f238a2e8ff405859f000"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_easy_x_plus_1_1_geometry.html#a83446e6edb40f238a2e8ff405859f000">drawBeziers</a> (<a class="el" href="class_easy_x_plus_1_1_point_array.html">PointArray</a> points)</td></tr>
<tr class="memdesc:a83446e6edb40f238a2e8ff405859f000"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw some bezier curves.  <a href="#a83446e6edb40f238a2e8ff405859f000">More...</a><br /></td></tr>
<tr class="separator:a83446e6edb40f238a2e8ff405859f000"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a621dca83e8bb7f4901ce26b08e669d17"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_easy_x_plus_1_1_geometry.html#a621dca83e8bb7f4901ce26b08e669d17">drawPolyline</a> (<a class="el" href="class_easy_x_plus_1_1_point_array.html">PointArray</a> points)</td></tr>
<tr class="memdesc:a621dca83e8bb7f4901ce26b08e669d17"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw some polylines.  <a href="#a621dca83e8bb7f4901ce26b08e669d17">More...</a><br /></td></tr>
<tr class="separator:a621dca83e8bb7f4901ce26b08e669d17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Filled Shape Operations. Fill operations draw themselves using the line</div></td></tr>
<tr><td colspan="2"><div class="groupText"><p>color and fill color set. </p>
</div></td></tr>
<tr class="memitem:a380097ad523b8a6fc8571c09019827eb"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_easy_x_plus_1_1_geometry.html#a380097ad523b8a6fc8571c09019827eb">drawChord</a> (<a class="el" href="class_easy_x_plus_1_1_rect_region.html">RectRegion</a> bound, <a class="el" href="class_easy_x_plus_1_1_point.html">Point</a> start, <a class="el" href="class_easy_x_plus_1_1_point.html">Point</a> end)</td></tr>
<tr class="memdesc:a380097ad523b8a6fc8571c09019827eb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw a chord which is bounded in the "bound" region, starts from the "start" point and ends at the "end" point in clockwise order.  <a href="#a380097ad523b8a6fc8571c09019827eb">More...</a><br /></td></tr>
<tr class="separator:a380097ad523b8a6fc8571c09019827eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c1a3494b446fb52c81760160f7f4b6d"><td class="memItemLeft" align="right" valign="top"><a id="a1c1a3494b446fb52c81760160f7f4b6d"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_easy_x_plus_1_1_geometry.html#a1c1a3494b446fb52c81760160f7f4b6d">drawEllipse</a> (<a class="el" href="class_easy_x_plus_1_1_rect_region.html">RectRegion</a> bound)</td></tr>
<tr class="memdesc:a1c1a3494b446fb52c81760160f7f4b6d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw an ellipse with the given bound. <br /></td></tr>
<tr class="separator:a1c1a3494b446fb52c81760160f7f4b6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5eb393b4aa78a1e3f9b0afa2320b384"><td class="memItemLeft" align="right" valign="top"><a id="af5eb393b4aa78a1e3f9b0afa2320b384"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_easy_x_plus_1_1_geometry.html#af5eb393b4aa78a1e3f9b0afa2320b384">drawRectangle</a> (<a class="el" href="class_easy_x_plus_1_1_rect_region.html">RectRegion</a> rectRegion)</td></tr>
<tr class="memdesc:af5eb393b4aa78a1e3f9b0afa2320b384"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw a rectangle with the given rectangle region. <br /></td></tr>
<tr class="separator:af5eb393b4aa78a1e3f9b0afa2320b384"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c2762575d150860da650e2bcbd94d94"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_easy_x_plus_1_1_geometry.html#a4c2762575d150860da650e2bcbd94d94">drawRoundRectangle</a> (<a class="el" href="class_easy_x_plus_1_1_rect_region.html">RectRegion</a> rectRegion, <a class="el" href="class_easy_x_plus_1_1_rect.html">Rect</a> ellipseBound)</td></tr>
<tr class="memdesc:a4c2762575d150860da650e2bcbd94d94"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw a round rectangle with the given rectangle region and round rectangle.  <a href="#a4c2762575d150860da650e2bcbd94d94">More...</a><br /></td></tr>
<tr class="separator:a4c2762575d150860da650e2bcbd94d94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b0576470c9fdf1b6e30c4f1349e1c32"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_easy_x_plus_1_1_geometry.html#a4b0576470c9fdf1b6e30c4f1349e1c32">drawPie</a> (<a class="el" href="class_easy_x_plus_1_1_rect_region.html">RectRegion</a> bound, <a class="el" href="class_easy_x_plus_1_1_point.html">Point</a> start, <a class="el" href="class_easy_x_plus_1_1_point.html">Point</a> end)</td></tr>
<tr class="memdesc:a4b0576470c9fdf1b6e30c4f1349e1c32"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw a pie with the given bound region, start point and end point.  <a href="#a4b0576470c9fdf1b6e30c4f1349e1c32">More...</a><br /></td></tr>
<tr class="separator:a4b0576470c9fdf1b6e30c4f1349e1c32"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a413a4217e52c6f95a81f25e8324b8de1"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_easy_x_plus_1_1_geometry.html#a413a4217e52c6f95a81f25e8324b8de1">drawPolygon</a> (<a class="el" href="class_easy_x_plus_1_1_point_array.html">PointArray</a> points)</td></tr>
<tr class="memdesc:a413a4217e52c6f95a81f25e8324b8de1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw a polygon with the given points.  <a href="#a413a4217e52c6f95a81f25e8324b8de1">More...</a><br /></td></tr>
<tr class="separator:a413a4217e52c6f95a81f25e8324b8de1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A class providing geometry operations. </p>
<p>When doing geometry operations, you need to know three common attributes: </p><table class="doxtable">
<tr>
<th>Color Types </th><th>Related Operations  </th></tr>
<tr>
<td>Dot color </td><td>doing "Dot" Operations. </td></tr>
<tr>
<td>Line color </td><td>doing "Line" Operations such as drawing lines and the outer lines of shapes. </td></tr>
<tr>
<td>Fill color </td><td>doing "Filled Shape" Operations such as drawing rectangles and ellipses. </td></tr>
</table>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="ab8571019ce79381a9d88f08350c53c66"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab8571019ce79381a9d88f08350c53c66">&#9670;&nbsp;</a></span>drawArc()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void EasyXPlus::Geometry::drawArc </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_easy_x_plus_1_1_rect_region.html">RectRegion</a>&#160;</td>
          <td class="paramname"><em>bound</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_easy_x_plus_1_1_point.html">Point</a>&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_easy_x_plus_1_1_point.html">Point</a>&#160;</td>
          <td class="paramname"><em>end</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Draw an arc which is bounded in the "bound" region, starts from the "start" point and ends at the "end" point in clockwise order. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">bound</td><td>A region bounding the arc. </td></tr>
    <tr><td class="paramname">start</td><td>A point which forms a radial with region center together. </td></tr>
    <tr><td class="paramname">end</td><td>A point which forms another radial with region center together. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section remark"><dt>Remarks</dt><dd>The region "bound" specify the bounding rectangle. An ellipse formed by the specified bounding rectangle defines the curve of the arc. The arc extends in the current drawing direction from the point where it intersects the radial from the center of the bounding rectangle to the "start" point. The arc ends where it intersects the radial from the center of the bounding rectangle to the "end" point. If the starting point and ending point are the same, a complete ellipse is drawn. </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">If</td><td>one point is the region center and another not, than it throws an exception. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a83446e6edb40f238a2e8ff405859f000"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a83446e6edb40f238a2e8ff405859f000">&#9670;&nbsp;</a></span>drawBeziers()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void EasyXPlus::Geometry::drawBeziers </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_easy_x_plus_1_1_point_array.html">PointArray</a>&#160;</td>
          <td class="paramname"><em>points</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Draw some bezier curves. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">points</td><td>Some points from which the bezier curves are drawn. The number of points must be one more than three times the number of curves to be drawn, because each Bézier curve requires two control points and an endpoint, and the initial curve requires an additional starting point. </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="class_easy_x_plus_1_1_easy_except.html" title="The exception type used by EasyXPlus library. ">EasyExcept</a></td><td>If the point number is invalid, it throws an exception. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a380097ad523b8a6fc8571c09019827eb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a380097ad523b8a6fc8571c09019827eb">&#9670;&nbsp;</a></span>drawChord()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void EasyXPlus::Geometry::drawChord </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_easy_x_plus_1_1_rect_region.html">RectRegion</a>&#160;</td>
          <td class="paramname"><em>bound</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_easy_x_plus_1_1_point.html">Point</a>&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_easy_x_plus_1_1_point.html">Point</a>&#160;</td>
          <td class="paramname"><em>end</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Draw a chord which is bounded in the "bound" region, starts from the "start" point and ends at the "end" point in clockwise order. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">bound</td><td>A region bounding the chord. </td></tr>
    <tr><td class="paramname">start</td><td>A point which forms a radial with region center together. </td></tr>
    <tr><td class="paramname">end</td><td>A point which forms another radial with region center together. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section remark"><dt>Remarks</dt><dd>The region "bound" specify the bounding rectangle. An ellipse formed by the specified bounding rectangle defines the curve of the arc. The arc extends in the current drawing direction from the point where it intersects the radial from the center of the bounding rectangle to the "start" point. The arc ends where it intersects the radial from the center of the bounding rectangle to the "end" point. If the starting point and ending point are the same, a complete ellipse is drawn. </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">If</td><td>one point is the region center and another not, than it throws an exception. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a4b0576470c9fdf1b6e30c4f1349e1c32"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4b0576470c9fdf1b6e30c4f1349e1c32">&#9670;&nbsp;</a></span>drawPie()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void EasyXPlus::Geometry::drawPie </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_easy_x_plus_1_1_rect_region.html">RectRegion</a>&#160;</td>
          <td class="paramname"><em>bound</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_easy_x_plus_1_1_point.html">Point</a>&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_easy_x_plus_1_1_point.html">Point</a>&#160;</td>
          <td class="paramname"><em>end</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Draw a pie with the given bound region, start point and end point. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_easy_x_plus_1_1_geometry.html#a380097ad523b8a6fc8571c09019827eb" title="Draw a chord which is bounded in the &quot;bound&quot; region, starts from the &quot;start&quot; point and ends at the &quot;e...">drawChord()</a> </dd></dl>

</div>
</div>
<a id="a413a4217e52c6f95a81f25e8324b8de1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a413a4217e52c6f95a81f25e8324b8de1">&#9670;&nbsp;</a></span>drawPolygon()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void EasyXPlus::Geometry::drawPolygon </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_easy_x_plus_1_1_point_array.html">PointArray</a>&#160;</td>
          <td class="paramname"><em>points</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Draw a polygon with the given points. </p>
<p>Polygons are similar to polylines except that polygons are filled shapes. If the first point and the last point is not the same point, then a line formed by these two points will be drawn. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">points</td><td>The points to form the polygon, the number of points must be greater or equal to 3. </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">If</td><td>the number of points is invalid, it throws an exception. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a621dca83e8bb7f4901ce26b08e669d17"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a621dca83e8bb7f4901ce26b08e669d17">&#9670;&nbsp;</a></span>drawPolyline()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void EasyXPlus::Geometry::drawPolyline </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_easy_x_plus_1_1_point_array.html">PointArray</a>&#160;</td>
          <td class="paramname"><em>points</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Draw some polylines. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">points</td><td>Some endpoints from which the polyline is drawn. The number of points must be greater or equal than 2. </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="class_easy_x_plus_1_1_easy_except.html" title="The exception type used by EasyXPlus library. ">EasyExcept</a></td><td>If the point number is less than 2, it throws an exception. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a4c2762575d150860da650e2bcbd94d94"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4c2762575d150860da650e2bcbd94d94">&#9670;&nbsp;</a></span>drawRoundRectangle()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void EasyXPlus::Geometry::drawRoundRectangle </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_easy_x_plus_1_1_rect_region.html">RectRegion</a>&#160;</td>
          <td class="paramname"><em>rectRegion</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_easy_x_plus_1_1_rect.html">Rect</a>&#160;</td>
          <td class="paramname"><em>ellipseBound</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Draw a round rectangle with the given rectangle region and round rectangle. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rectRegion</td><td>A rectangle region which bounds the rectangle. </td></tr>
    <tr><td class="paramname">ellipseBBound</td><td>A rectangle which bounds the round part of the rectangle. </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="class_easy_x_plus_1_1_easy_except.html" title="The exception type used by EasyXPlus library. ">EasyExcept</a></td><td>If the "rectRegion" is not bigger than the "ellipseBound", it throws an exception. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="easy_geometry_8h_source.html">easyGeometry.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
